-- GENERATED SPELL FOR [Boulderfist Mystic] --


function spell0_17135(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(13281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17135', 2308, 1)
end

function spell1_17135(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(11431,pUnit)
pUnit:RegisterEvent('Sorts_17135', 3000, 1)
end

function spell2_17135(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17135', 3000, 1)
end

function Sorts_17135(pUnit, Event)
local choix_sorts_17135 = math.random(0, 2)
if choix_sorts_17135 == 0 then
pUnit:RegisterEvent('spell0_17135', 1, 1)
end
if choix_sorts_17135 == 1 then
pUnit:RegisterEvent('spell1_17135', 1, 1)
end
if choix_sorts_17135 == 2 then
pUnit:RegisterEvent('spell2_17135', 1, 1)
end
end

function mob17135_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17135', math.random(1500, 3000), 1)
end

function mob17135_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17135_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17135_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17135, 1, 'mob17135_Action')
RegisterUnitEvent(17135, 2, 'mob17135_Leave')
RegisterUnitEvent(17135, 3, 'mob17135_Kill')
RegisterUnitEvent(17135, 4, 'mob17135_Die')
